package flyweightPattern

/**
 * 棋子的实现类
 */
class ChessPieceImpl(private val color: String) : ChessPiece {
    override fun put(x: Int, y: Int) {
        PrintUtil.print("在坐标(${x},${y})处放置了一颗${color}的棋子")
    }
}